package com.shd.edanpei.util.contact;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by mc on 2018/11/15.
 * yang-wen-wen
 */

public class ProductTypeListBean implements Parcelable {

    private List<ProductTypeListBean> data;
    private String  createTime;
    private String  createUserId;
    private  int id;
    private String pic;
    private  String productDesc;
    private String sort;
    private int type;
    private String updateTime;

    protected ProductTypeListBean(Parcel in) {
        data = in.createTypedArrayList(ProductTypeListBean.CREATOR);
        createTime = in.readString();
        createUserId = in.readString();
        id = in.readInt();
        pic = in.readString();
        productDesc = in.readString();
        sort = in.readString();
        type = in.readInt();
        updateTime = in.readString();
    }

    public static final Creator<ProductTypeListBean> CREATOR = new Creator<ProductTypeListBean>() {
        @Override
        public ProductTypeListBean createFromParcel(Parcel in) {
            return new ProductTypeListBean(in);
        }

        @Override
        public ProductTypeListBean[] newArray(int size) {
            return new ProductTypeListBean[size];
        }
    };

    public List<ProductTypeListBean> getData() {
        return data;
    }

    public void setData(List<ProductTypeListBean> data) {
        this.data = data;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(data);
        dest.writeString(createTime);
        dest.writeString(createUserId);
        dest.writeInt(id);
        dest.writeString(pic);
        dest.writeString(productDesc);
        dest.writeString(sort);
        dest.writeInt(type);
        dest.writeString(updateTime);
    }
}
